package lab02.test22;

/**
 * Created by 123 on 2017/10/30.
 */
public class Test22 {
    public static void main(String[] args) {
        String result = "Hello,2017,World";

        /*
        1;大写->小写
        2；数字->0
        3;其他->#
        */

        for (int i = 0; i < result.length(); i++) {
            char tmp = result.charAt(i);
            if (tmp >= 'A' && tmp <= 'Z') {
                System.out.print((char) (tmp + 32));
            } else if (tmp >= 'a' && tmp <= 'z') {
                System.out.print((tmp));
            } else if (tmp >= '0' && tmp <= '9') {
                System.out.print("0");
            } else {
                System.out.print("#");
            }
        }

    }
}

